Index

A C D E H I M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values

A

add(Money) - Method in class money.Money
Adds given money to this money.
add(Money) - Method in class money.MoneyBag
 
add(Money) - Method in class money.SimpleMoney
 
addSetter(Consumer<String>) - Method in class example.Model
Add action to be called when model's value is updated
amount() - Method in class money.SimpleMoney
Returns only the amount of this money.

C

currency() - Method in class money.SimpleMoney
Returns only the currency of this money.

D

DEBUG - Static variable in class example.View
 
DEFAULT_LANGUAGE - Static variable in class example.Main
 
DEFAULT_RESOURCE_PACKAGE - Static variable in class example.View
 
DEFAULT_RESOURCES - Static variable in class example.Model
 
DEFAULT_SIZE - Static variable in class example.Main
 
DEFAULT_STYLESHEET - Static variable in class example.View
 

E

equals(Object) - Method in class money.MoneyBag
 
equals(Object) - Method in class money.SimpleMoney
 
example - package example
 

H

hashCode() - Method in class money.MoneyBag
 
hashCode() - Method in class money.SimpleMoney
 

I

isZero() - Method in class money.Money
Tests whether this money is zero
isZero() - Method in class money.MoneyBag
 
isZero() - Method in class money.SimpleMoney
 

M

main(String[]) - Static method in class reflection.ShowClass
 
Main - Class in example
This program creates several kinds of UI components for testing.
Main() - Constructor for class example.Main
 
makeClass(Class<?>) - Static method in class reflection.ShowClass
Tries to create an object using both a default constructor and one that takes a String.
makeScene(int, int) - Method in class example.View
 
Model - Class in example
Simple model that notifies view objects when its value has changed.
Model(String) - Constructor for class example.Model
Create model in given language
money - package money
 
Money - Class in money
The common interface for simple Monies and MoneyBags
Money() - Constructor for class money.Money
 
MoneyBag - Class in money
A MoneyBag defers exchange rate conversions.
MoneyBag() - Constructor for class money.MoneyBag
Constructs an empty bag of money.
MoneyBag(MoneyBag) - Constructor for class money.MoneyBag
Constructs a bag of money from the contents of the given bag of money.
multiply(int) - Method in class money.Money
Multiplies this money by the given factor.
multiply(int) - Method in class money.MoneyBag
 
multiply(int) - Method in class money.SimpleMoney
 

N

negate() - Method in class money.Money
Negates this money.
negate() - Method in class money.MoneyBag
 
negate() - Method in class money.SimpleMoney
 

O

of(SimpleMoney...) - Static method in class money.MoneyBag
Static "constructor" that creates appropriate concrete class based on the given parameters

P

printClass(Class<?>) - Static method in class reflection.ShowClass
Display modifiers, name, superclass and interfaces of a class or interface.

R

reflection - package reflection
 

S

setValue(String) - Method in class example.Model
Change model's value and notify any interested view objects
ShowClass - Class in reflection
A program that displays a class synopsis for the named class This example is from _Java Examples in a Nutshell_.
ShowClass() - Constructor for class reflection.ShowClass
 
SimpleMoney - Class in money
A simple amount of Money with its currency.
SimpleMoney(int, String) - Constructor for class money.SimpleMoney
Constructs simple money from the given amount and currency.
start(Stage) - Method in class example.Main
 
subtract(Money) - Method in class money.Money
Subtracts given money from this money.
subtract(Money) - Method in class money.MoneyBag
 
subtract(Money) - Method in class money.SimpleMoney
 

T

TITLE - Static variable in class example.Main
 
toString() - Method in class money.MoneyBag
 
toString() - Method in class money.SimpleMoney
 

V

View - Class in example
This program creates several kinds of UI components for testing.
View(String, Model) - Constructor for class example.View
Create view in given language with given model
A C D E H I M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values